The CxFmsExceptionsCtrl object contains the following methods:
Applies modified settings and builds the FMS Exceptions control. This method has the same function as the Apply button on the FMS Exceptions control.
Apply(SessionPropertiesOnly As Boolean)
| Parameter |
Required |
Description |
|---|---|---|
|
SessionPropertiesOnly |
No |
If this parameter is set to True, only the properties SessionNodeTag, SessionBeginDate, and SessionEndDate will be applied. |
Example
The following example applies settings when a button is pressed.
|
Sub ButtonTool_EventClick() Dim This : Set This = ButtonTool FmsExceptions.Apply End Sub |
Cancels the current task.
Cancel()
The following is the list of tasks that can be canceled with this method.
Example
The following example cancels a task when a button is pressed. This example is taken from FMS Exceptions Ctrl.csf found in the APPS SCREXAMP folder.
|
Sub btnCancel_EventClick() Dim This : Set This = btnCancel FmsExceptions.Cancel End Sub |
Returns the list of Nodes currently selected in the Node chooser.
ChooserGetNodeSelection() As Variant
Example
The following example displays a message box showing the list of selected Nodes.
|
Sub ButtonTool1_EventClick() Dim This : Set This = ButtonTool1 Dim aryNodes aryNodes = FmsExceptions.ChooserGetNodeSelection
Dim i, strMsg For i = 0 To UBound(aryNodes) strMsg = strMsg & aryNodes(i) & Vbcr Next
MsgBox strMsg End Sub |
Sets the selection of Nodes in the Node chooser.
ChooserSetNodeSelection(Selections As Variant) As Boolean
| Parameter | Required | Description |
|---|---|---|
|
Selections |
Yes |
The list of Nodes, in "Node ID" format, to select in the Node chooser. |
Example
The following example selects three Nodes in the Node chooser.
|
Sub ButtonTool1_EventClick() Dim This : Set This = ButtonTool1 Dim aryNodes Redim aryNodes(2)
aryNodes(0) = "2540" aryNodes(1) = "2541" aryNodes(2) = "2542"
FmsExceptions.ChooserSetNodeSelection aryNodes End Sub |
Refreshes the data in the FMS Exceptions control. This method has the same function as the Refresh button on the FMS Exceptions control.
Refresh()
Example
The following example refreshes the Fms Exceptions control when a button is pressed.
|
Sub ButtonTool1_EventClick() Dim This : Set This = ButtonTool1 FmsExceptions.Refresh End Sub |
Populates the Node chooser’s list of Nodes. This method has the same function as the RetrieveNodes button on the FMS Exceptions control’s Node chooser.
RetrieveNodes()
When this method is called, the Node chooser is populated according to the ChooserSiteServiceSelection, ChooserGroupSelection, ChooserNodeCategorySelection, ChooserFilterString, and ChooserFilterType properties.
Example
The following example retrieves Nodes when the View is initialized.
|
Sub TheView_EventInitialize() Dim This : Set This = TheView FmsExceptions.RetrieveNodes End Sub |